package org.jsystem;



import org.jsystem.tools.*;
import jsystem.framework.system.SystemObjectImpl;
import junit.framework.Assert;

public class CreatePullSo extends SystemObjectImpl 
{
	LogContainerHttp logContainerHttp = new LogContainerHttp();

	public void verifyIfPullCreated() {
		CreatePushHelper createPushHelper = new CreatePushHelper();
		logContainerHttp.setUrl(HTTP + srcIp + params1 + uiport +  params7 + rfunc + params4 + func + params2 +
				rtype + params4 + type + params2 + rid + params4 + id + params2 + rmax_outputs + params4 + max_outputs + params2 + 
				rmcast_out + params4 + mcast_out + params2 + rmcast_force + params4 + mcast_force + params2 + rmcast_ip + params4 + mcast_ip + params2 +
				rmcast_port + params4 + mcast_port + params2 + rmcast_ttl + params4 + mcast_ttl + params2 + rtime_shift + params4 + time_shift + params2 +
				rhost0 + params4 + host0 + params2 + rpull_port + params4 + pull_port + params2 + rsource + params4 + source + params2 +
				rpassword + params4 + password + params2 + rlatency + params4 + latency + params2 + rnic + params4 + nic + params2
				+ rfec_overhead + params4 + fec_overhead + params2 + rfec_latency + params4 + fec_latency + params2 + rfec_aware + params4 + fec_aware + params2 +
				rfec_adaptive + params4 + fec_adaptive + params2 + rfec_force + params4 + fec_force + params2 + rcomplete + params4 + complete + params2 
				+ params2 + ron + params4 + on + params2 +  params5);
		
		Assert.assertNotNull(createPushHelper.sendGet(HTTP + srcIp + params1 + uiport +  params7 + rfunc + params4 + func + params2 +
				rtype + params4 + type + params2 + rid + params4 + id + params2 + rmax_outputs + params4 + max_outputs + params2 + 
				rmcast_out + params4 + mcast_out + params2 + rmcast_force + params4 + mcast_force + params2 + rmcast_ip + params4 + mcast_ip + params2 +
				rmcast_port + params4 + mcast_port + params2 + rmcast_ttl + params4 + mcast_ttl + params2 + rtime_shift + params4 + time_shift + params2 +
				rhost0 + params4 + host0 + params2 + rpull_port + params4 + pull_port + params2 + rsource + params4 + source + params2 +
				rpassword + params4 + password + params2 + rlatency + params4 + latency + params2 + rnic + params4 + nic + params2
				+ rfec_overhead + params4 + fec_overhead + params2 + rfec_latency + params4 + fec_latency + params2 + rfec_aware + params4 + fec_aware + params2 +
				rfec_adaptive + params4 + fec_adaptive + params2 + rfec_force + params4 + fec_force + params2 + rcomplete + params4 + complete + params2 
				+ params2 + ron + params4 + on + params2 +  params5 , id, logContainerHttp));
		
		report.step(logContainerHttp.getAthorization());
		report.step(logContainerHttp.getHost());
		report.step(logContainerHttp.getUserAgent());
		report.step(logContainerHttp.getUrl());
	}

	final private static String HTTP = "http://";
	final private static String params1 = ":";
	final private static String params2 = "&";
	final private static String params4 = "=";
	final private static String params5 = "ie_fooler=0.45086039789021015"; 
	final private static String params7 = "/zixi/add_stream.json?";

	final private String rfunc = "func";
	final private String ron = "on";
	final private String rpassword = "password";
	final private String rlatency = "latency";
	final private String rtype = "type";
	final private String rid = "id";
	final private String rmax_outputs = "max_outputs";
	final private String rmcast_out = "mcast_out";
	final private String rmcast_force = "mcast_force";
	final private String rmcast_ip = "mcast_ip";
	final private String rmcast_port = "mcast_port";
	final private String rmcast_ttl = "mcast_ttl";
	final private String rtime_shift = "time_shift";
	final private String rcomplete = "complete";

	
	final private String rpull_port = "pull-port";
	final private String rsource = "source";
	final private String rfec_overhead = "fec_overhead";
	final private String rfec_latency = "fec_latency";
	final private String rfec_aware = "fec_aware";
	final private String rfec_adaptive = "fec_adaptive";
	final private String rfec_force =  "fec_force";
	final private String rnic =  "nic";
	final private String rhost0 =  "host0";

	private String srcIp = "";
    private String uiport = "";
	private String func = "";
	
	private String time_shift = "";
	private String max_outputs = "";
	private String id = "";
	private String on = "";
	private String type = "";
	private String mcast_out = "";
	private String mcast_force = "";
	private String mcast_ip = "";
	private String mcast_port = "";
	private String mcast_ttl = "";
	private String complete = "";
	
	private String host0 = "";
	private String pull_port = "";
	private String source = "";
	private String password = "";
	private String latency = "";
	private String fec_overhead = "";
	private String fec_latency = "";
	private String fec_aware = "";
	private String fec_adaptive = "";
	private String fec_force = "";
	private String nic = "";
	
	public String getSrcIp() {
		return srcIp;
	}
	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}
	public String getUiport() {
		return uiport;
	}
	public void setUiport(String uiport) {
		this.uiport = uiport;
	}
	public String getFunc() {
		return func;
	}
	public void setFunc(String func) {
		this.func = func;
	}
	public String getTime_shift() {
		return time_shift;
	}
	public void setTime_shift(String time_shift) {
		this.time_shift = time_shift;
	}
	public String getMax_outputs() {
		return max_outputs;
	}
	public void setMax_outputs(String max_outputs) {
		this.max_outputs = max_outputs;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOn() {
		return on;
	}
	public void setOn(String on) {
		this.on = on;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getMcast_out() {
		return mcast_out;
	}
	public void setMcast_out(String mcast_out) {
		this.mcast_out = mcast_out;
	}
	public String getMcast_force() {
		return mcast_force;
	}
	public void setMcast_force(String mcast_force) {
		this.mcast_force = mcast_force;
	}
	public String getMcast_ip() {
		return mcast_ip;
	}
	public void setMcast_ip(String mcast_ip) {
		this.mcast_ip = mcast_ip;
	}
	public String getMcast_port() {
		return mcast_port;
	}
	public void setMcast_port(String mcast_port) {
		this.mcast_port = mcast_port;
	}
	public String getMcast_ttl() {
		return mcast_ttl;
	}
	public void setMcast_ttl(String mcast_ttl) {
		this.mcast_ttl = mcast_ttl;
	}
	public String getComplete() {
		return complete;
	}
	public void setComplete(String complete) {
		this.complete = complete;
	}
	public String getHost0() {
		return host0;
	}
	public void setHost0(String host0) {
		this.host0 = host0;
	}
	public String getPull_port() {
		return pull_port;
	}
	public void setPull_port(String pull_port) {
		this.pull_port = pull_port;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getLatency() {
		return latency;
	}
	public void setLatency(String latency) {
		this.latency = latency;
	}
	public String getFec_overhead() {
		return fec_overhead;
	}
	public void setFec_overhead(String fec_overhead) {
		this.fec_overhead = fec_overhead;
	}
	public String getFec_latency() {
		return fec_latency;
	}
	public void setFec_latency(String fec_latency) {
		this.fec_latency = fec_latency;
	}
	public String getFec_aware() {
		return fec_aware;
	}
	public void setFec_aware(String fec_aware) {
		this.fec_aware = fec_aware;
	}
	public String getFec_adaptive() {
		return fec_adaptive;
	}
	public void setFec_adaptive(String fec_adaptive) {
		this.fec_adaptive = fec_adaptive;
	}
	public String getFec_force() {
		return fec_force;
	}
	public void setFec_force(String fec_force) {
		this.fec_force = fec_force;
	}
	public String getNic() {
		return nic;
	}
	public void setNic(String nic) {
		this.nic = nic;
	}
	public String getRfunc() {
		return rfunc;
	}
	public String getRon() {
		return ron;
	}
	public String getRpassword() {
		return rpassword;
	}
	public String getRlatency() {
		return rlatency;
	}
	public String getRtype() {
		return rtype;
	}
	public String getRid() {
		return rid;
	}
	public String getRmax_outputs() {
		return rmax_outputs;
	}
	public String getRmcast_out() {
		return rmcast_out;
	}
	public String getRmcast_force() {
		return rmcast_force;
	}
	public String getRmcast_ip() {
		return rmcast_ip;
	}
	public String getRmcast_port() {
		return rmcast_port;
	}
	public String getRmcast_ttl() {
		return rmcast_ttl;
	}
	public String getRtime_shift() {
		return rtime_shift;
	}
	public String getRcomplete() {
		return rcomplete;
	}
	public String getRpull_port() {
		return rpull_port;
	}
	public String getRsource() {
		return rsource;
	}
	public String getRfec_overhead() {
		return rfec_overhead;
	}
	public String getRfec_latency() {
		return rfec_latency;
	}
	public String getRfec_aware() {
		return rfec_aware;
	}
	public String getRfec_adaptive() {
		return rfec_adaptive;
	}
	public String getRfec_force() {
		return rfec_force;
	}
	public String getRnic() {
		return rnic;
	}
	public String getRhost0() {
		return rhost0;
	}

	
	
}